| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal format As String, _ ByVal ParamArray args() As Object _ ) | |
Parameters
- format
- args
Library/Library.Test/LockingTests/TestMutexLock.cs
| C# | Copy Code |
|---|---|
using (new MutexLock("MutexLock.{0}", "TestMutexLockByFormattedName")) { Assert.IsFalse(CanLock(new Mutex(false, "MutexLock.TestMutexLockByFormattedName"))); } | |
| VB.NET | Copy Code |
|---|---|
Using New MutexLock("MutexLock.{0}", "TestMutexLockByFormattedName") Assert.IsFalse(CanLock(New Mutex(False, "MutexLock.TestMutexLockByFormattedName"))) End Using | |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7